<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <input type="number" name="" id="aa" value=11>
  <button id="yain">click me</button>
 <script>
   let yy = document.getElementById("yain");
   yy.addEventListener("click",function() {
     console.log(11);
     setTimeout(()=>{
        let aa = document.getElementById("aa")
        console.log(typeof aa.value); 
     },20)
   })
 </script>
</body>
</html>